package _2025_4_15;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class pathdemo2 {
    public static void main(String[] args) throws IOException {

        try  (InputStream inputStream=new FileInputStream("D:/temp/java114/abc.txt")) {
            byte[] arr = new byte[1024];
            while (true) {
                int ret = inputStream.read(arr);
                if (ret == -1) break;
                for(int i=0;i<ret;i+=3){
                    String s=new String(arr,i,3,"UTF-8");
                    System.out.println(s);
                }
            }
        }
    }
}
